import ValueWatcher from "./ValueWatcher";

export default class NumberWatcher extends ValueWatcher<number> {

    add(value: number) {
        if (value === 0) return;
        this.change(this.value + value);
    }

    sub(value: number) {
        if (value === 0) return;
        this.change(this.value - value);
    }
    
}